Skip to content

<link> to stylesheet won't work because of missing xmlns #26883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Rolf-B opened this issue May 21, 2023 · 0 comments · Fixed by #26888
Closed

<link> to stylesheet won't work because of missing xmlns #26883

Rolf-B opened this issue May 21, 2023 · 0 comments · Fixed by #26888
Labels
Content:SVG SVG docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@Rolf-B
Copy link

Rolf-B commented May 21, 2023

MDN URL

https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS

What specific section or headline is this issue about?

First example

What information was incorrect, unhelpful, or incomplete?

<link> needs xmlns="http://www.w3.org/1999/xhtml" to work, since <link> is not a SVG element. The existing xmlns:xlink in the example is not sufficent.

What did you expect to see?

Either xmlns:xhtml="http://www.w3.org/1999/xhtml" in the SVG element and xhtml:link... to reference the stylesheet, or a local namespace declaration like this:

<link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="style8.css" type="text/css" />

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@Rolf-B Rolf-B added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 21, 2023
@github-actions github-actions bot added the Content:SVG SVG docs label May 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:SVG SVG docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant